<?php if($pds){foreach($pds as $p_in){?>
<tr id="re_<?php echo $p_in['id']?>">
    <td>
        <input type="checkbox" name="select" value="<?php echo $p_in['id']?>">
    </td>
    <td >
        <?php echo $p_in['id']?>
    </td>
    <td >
        <?php echo $p_in['sku']?>
    </td>
    <td >
        <input class="input-mini" type="text" value="<?php if(isset($p_in['single_price'])) echo $p_in['single_price']?>" onBlur="atotle_price(this)">
    </td>
    <td >
        <input class="input-mini" type="text" value="<?php if(isset($p_in['quantity'])) echo $p_in['quantity']?>" onBlur="atotle_s_price(this)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
    </td>
    <td >
        <?php echo number_format($p_in['money'],2)?>
    </td>
    <td >
        <select class="input-xlarge field"  name="tax_way" id="tax_way" style="width: 75px">
            <?php foreach ($tax_ways as $tax_way){?>
                <option value="<?php echo $tax_way['id']?>" <?php if(trim($tax_way['id']) == $p_in['tax_way']){
                    echo "selected='selected'";}?>>
                    <?php echo $tax_way['tax_way']?>
                </option>
            <?php }?>
        </select>
    </td>
    <td >
        <input class="input-mini tax_rate" type="text" value="<?php if(isset($p_in['tax_rate'])) echo $p_in['tax_rate']*100 ?>">%
    </td>
    <td >
        <input class="input-mini datepicker" type="text" value="<?php if(isset($p_in['arrive_date'])) echo $p_in['arrive_date']?>">
    </td>
    <td >
        <?php echo isset($pu_status[$p_in['status']])?$pu_status[$p_in['status']]:'';?>
    </td>

</tr>
<?php }}?>